#pragma once
#include <windows.h>
#include <TCHAR.h>
#include <vfw.h>
#include "playerstate.h"

class Player_impl
{
public:
    Player_impl();
    ~Player_impl();

    void Init(HWND, HINSTANCE);

    bool Play(TCHAR* fileName);
    bool PlayFrom(long pos);

    bool Repeate();

    bool Resume();
    bool Pause();
    bool Stop();
    PlayerState GetState();
    void SetState(PlayerState ps);

private:
    HWND playerWnd_;
    PlayerState state_;
};
